package com.awei.study.design.found.singleton;

/**
 * 懒汉式4 静态内部类方式
 */
public class SingletonL4 {

    private SingletonL4() {}


    private static class SingletonGetInstance {
        private static final SingletonL4 instance = new SingletonL4();
    }

    public  SingletonL4 getInstance() {
        return SingletonGetInstance.instance;
    }
}
